/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: patricio caceres
 * License Type: Evaluation
 */
package orm;

public class Tan_anotacion {
	public Tan_anotacion() {
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_TAN_ANOTACION_TAN_SUBSECTORSU_ID_SUBSECTOR) {
			this.tan_subsectorsu_id_subsector = (orm.Tan_subsector) owner;
		}
		
		else if (key == orm.ORMConstants.KEY_TAN_ANOTACION_TAN_TIPOANOTACIONTA_ID_TIPOANOTACION) {
			this.tan_tipoanotacionta_id_tipoanotacion = (orm.Tan_tipoanotacion) owner;
		}
		
		else if (key == orm.ORMConstants.KEY_TAN_ANOTACION_TAN_ANOTADORPR_ID_RUT) {
			this.tan_anotadorpr_id_rut = (orm.Tan_anotador) owner;
		}
		
		else if (key == orm.ORMConstants.KEY_TAN_ANOTACION_TAN_ALUMNOAL_ID_RUT) {
			this.tan_alumnoal_id_rut = (orm.Tan_alumno) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int an_id_anotacion;
	
	private orm.Tan_subsector tan_subsectorsu_id_subsector;
	
	private orm.Tan_tipoanotacion tan_tipoanotacionta_id_tipoanotacion;
	
	private orm.Tan_anotador tan_anotadorpr_id_rut;
	
	private orm.Tan_alumno tan_alumnoal_id_rut;
	
	private java.util.Date an_fecha;
	
	private String an_descripcion;
	
	private void setAn_id_anotacion(int value) {
		this.an_id_anotacion = value;
	}
	
	public int getAn_id_anotacion() {
		return an_id_anotacion;
	}
	
	public int getORMID() {
		return getAn_id_anotacion();
	}
	
	public void setAn_fecha(java.util.Date value) {
		this.an_fecha = value;
	}
	
	public java.util.Date getAn_fecha() {
		return an_fecha;
	}
	
	public void setAn_descripcion(String value) {
		this.an_descripcion = value;
	}
	
	public String getAn_descripcion() {
		return an_descripcion;
	}
	
	public void setTan_subsectorsu_id_subsector(orm.Tan_subsector value) {
		if (tan_subsectorsu_id_subsector != null) {
			tan_subsectorsu_id_subsector.tan_anotacion.remove(this);
		}
		if (value != null) {
			value.tan_anotacion.add(this);
		}
	}
	
	public orm.Tan_subsector getTan_subsectorsu_id_subsector() {
		return tan_subsectorsu_id_subsector;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Tan_subsectorsu_id_subsector(orm.Tan_subsector value) {
		this.tan_subsectorsu_id_subsector = value;
	}
	
	private orm.Tan_subsector getORM_Tan_subsectorsu_id_subsector() {
		return tan_subsectorsu_id_subsector;
	}
	
	public void setTan_tipoanotacionta_id_tipoanotacion(orm.Tan_tipoanotacion value) {
		if (tan_tipoanotacionta_id_tipoanotacion != null) {
			tan_tipoanotacionta_id_tipoanotacion.tan_anotacion.remove(this);
		}
		if (value != null) {
			value.tan_anotacion.add(this);
		}
	}
	
	public orm.Tan_tipoanotacion getTan_tipoanotacionta_id_tipoanotacion() {
		return tan_tipoanotacionta_id_tipoanotacion;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Tan_tipoanotacionta_id_tipoanotacion(orm.Tan_tipoanotacion value) {
		this.tan_tipoanotacionta_id_tipoanotacion = value;
	}
	
	private orm.Tan_tipoanotacion getORM_Tan_tipoanotacionta_id_tipoanotacion() {
		return tan_tipoanotacionta_id_tipoanotacion;
	}
	
	public void setTan_anotadorpr_id_rut(orm.Tan_anotador value) {
		if (tan_anotadorpr_id_rut != null) {
			tan_anotadorpr_id_rut.tan_anotacion.remove(this);
		}
		if (value != null) {
			value.tan_anotacion.add(this);
		}
	}
	
	public orm.Tan_anotador getTan_anotadorpr_id_rut() {
		return tan_anotadorpr_id_rut;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Tan_anotadorpr_id_rut(orm.Tan_anotador value) {
		this.tan_anotadorpr_id_rut = value;
	}
	
	private orm.Tan_anotador getORM_Tan_anotadorpr_id_rut() {
		return tan_anotadorpr_id_rut;
	}
	
	public void setTan_alumnoal_id_rut(orm.Tan_alumno value) {
		if (tan_alumnoal_id_rut != null) {
			tan_alumnoal_id_rut.tan_anotacion.remove(this);
		}
		if (value != null) {
			value.tan_anotacion.add(this);
		}
	}
	
	public orm.Tan_alumno getTan_alumnoal_id_rut() {
		return tan_alumnoal_id_rut;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Tan_alumnoal_id_rut(orm.Tan_alumno value) {
		this.tan_alumnoal_id_rut = value;
	}
	
	private orm.Tan_alumno getORM_Tan_alumnoal_id_rut() {
		return tan_alumnoal_id_rut;
	}
	
	public String toString() {
		return String.valueOf(getAn_id_anotacion());
	}
	
}
